<%--
  Created by IntelliJ IDEA.
  User: MophyJoe
  Date: 9/6/2017
  Time: 9:13 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-3.2.1.js"></script>
    <script>

        function tt() {
            $.ajax({
                type: 'get',
                url: '/timer',
                cache: false,
                dataType: 'text',
                success: function (d) {
                    $('h3:first').html(d);
                }
            })

        }
        $(function () {
            alert(1)
            tt();
            setInterval(tt, 1000);
        })
    </script>
</head>
<body>
<h3>555</h3>

</body>
</html>
